@echo off
echo 测试医疗管理系统API...
echo.

REM 测试登录
echo 1. 测试登录接口...
curl -X POST http://localhost:8080/api/login ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "username=admin&password=123456"

echo.
echo.
echo 2. 测试获取仪表板数据（需要先登录获取token）...
echo 请先运行登录接口获取token，然后替换下面的YOUR_TOKEN
curl -X GET http://localhost:8080/api/dashboard ^
  -H "Authorization: YOUR_TOKEN"

echo.
echo.
echo 3. 测试获取药品列表...
curl -X GET http://localhost:8080/api/drugs/1/10

echo.
echo.
echo 测试完成！
pause




